package com.example.diethealthsystem.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

@Controller
public class PageController {

    @GetMapping("/dietplans")
    public String showDietPlansPage() {
        return "dietplans";
    }

    @GetMapping("/foods")
    public String showFoodsPage() {
        return "foods";
    }

    @GetMapping("/users")
    public String showUsersPage() {
        return "users";
    }

    @GetMapping("/userhealthindices")
    public String showUserHealthIndicesPage() {
        return "userhealthindices";
    }

    @GetMapping("/exercise-records")
    public String showExerciseRecordsPage() {
        return "exercise/index";
    }

    @GetMapping("/healthgoals/detail")
    public String showHealthGoalDetailPage() {
        return "healthgoals-detail";
    }

    @GetMapping("/healthgoals/manage")
    public String showHealthGoalManagePage() {
        return "healthgoals-manage";
    }

    @GetMapping("/")
    public String showIndexPage() {
        return "index";
    }

    // 可根据需要补充其它页面跳转方法
} 